export default function(props:any){
    const name=props.className;
    let className='w-svg';
    if(name){
        className+=' '+name;
    }
    let fn=props.onClick;
    let fnClick;
    if(fn){
        fnClick=(e:any)=>{
            fn(e);
        };
    }
    return (
        <span onClick={fnClick} className={className} style={{fontSize:props.fontSize,color:props.color}}>
            <svg viewBox="0 0 1024 1024" width="1em" height="1em" fill="currentColor">
                <path d="M563.168 119.616l0 83.136 25.6 6.624c28.96 7.488 56.576 19.104 82.112 34.592l22.88 13.888 59.52-59.52 72.384 72.384-60.416 60.416 13.024 22.656c14.432 25.12 25.216 52.32 32.064 80.864l6.272 26.144 87.808 0 0 102.368-89.792 0-6.912 25.024c-7.456 27.008-18.656 52.928-33.28 76.992l-13.888 22.912 65.152 65.12-72.384 72.384-66.048-66.048-22.624 13.024c-23.488 13.504-48.992 23.84-75.776 30.752l-25.6 6.592 0 94.432-102.368 0 0-94.432-25.6-6.592c-26.784-6.912-52.288-17.248-75.776-30.752l-22.656-13.024-66.048 66.048-72.384-72.384 65.152-65.12-13.888-22.912c-14.624-24.096-25.824-49.984-33.28-76.992l-6.912-25.024-89.792 0 0-102.368 87.808 0 6.272-26.144c6.816-28.512 17.632-55.744 32.064-80.864l13.024-22.656-60.416-60.416 72.384-72.384 59.52 59.52 22.88-13.888c25.536-15.488 53.152-27.136 82.112-34.592l25.6-6.624 0-83.136 102.368 0zM512 665.568c84.672 0 153.536-68.896 153.536-153.568s-68.864-153.568-153.536-153.568-153.536 68.896-153.536 153.568c0 84.672 68.864 153.568 153.536 153.568zM597.312 85.504l-170.592 0 0 90.848c-32.576 8.416-63.2 21.44-91.264 38.464l-64.704-64.704-120.608 120.64 66.08 66.08c-15.936 27.744-28 57.92-35.648 89.888l-95.04 0 0 170.592 97.92 0c8.416 30.496 20.96 59.2 36.992 85.632l-70.336 70.336 120.608 120.64 71.712-71.712c26.112 15.008 54.4 26.496 84.256 34.208l0 102.112 170.592 0 0-102.112c29.856-7.712 58.144-19.2 84.256-34.208l71.712 71.712 120.608-120.64-70.336-70.336c16.032-26.432 28.576-55.136 36.992-85.632l97.92 0 0-170.592-95.04 0c-7.648-31.968-19.712-62.112-35.648-89.888l66.08-66.08-120.608-120.64-64.704 64.704c-28.064-17.024-58.688-30.048-91.264-38.464l0-90.848 0 0zM512 631.456c-65.984 0-119.424-53.472-119.424-119.456s53.44-119.424 119.424-119.424 119.424 53.472 119.424 119.424c0 65.984-53.44 119.456-119.424 119.456l0 0z"></path>
            </svg>
        </span>
    )
}